<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Country Controller</title>
</head>
<body>
	<h4>The country belongs to: ${root.centralCountry.capital}</h4>
	<p>The nearest country:
			${root.nearestCountry.countryName} <br />
			Capital : ${root.nearestCountry.capital}
			( ${root.nearestCountry.capitalLat}, ${root.nearestCountry.capitalLong} )<br />
	</p>
	<table>
	<c:forEach var="country" items="${root.countryList}">
		<tr>
			<td>${country.countryName}</td>
			<td>${country.iso3Code}</td>
			<td>${country.capital}</td>
			<td>${country.capitalLat}</td>
			<td>${country.capitalLong}</td>
		</tr>
	</c:forEach>
	</table>

</body>
</html>